package com.xmkj.bearbiz.pk;

import android.view.View;

import com.common.mvp.BaseMvpActivity;
import com.common.mvp.BasePresenter;
import com.common.widget.navigation.WidgetButton;
import com.xmkj.bearbiz.R;

/**
 * Create by leo
 * 创建日期：2018/6/27
 * 描述：
 */

public class GoodsDetailsActivity extends BaseMvpActivity {
    @Override
    protected BasePresenter createPresenterInstance() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_goods_details;
    }

    @Override
    protected void onViewCreated() {
        setRightImg();
    }
    private void setRightImg() {
        m_navigationBar.setVisibility(View.VISIBLE);
        WidgetButton widgetButton = new WidgetButton(this, getResources().getDrawable(R.mipmap.bear_share));

        widgetButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                gotoShare();
            }
        });
        m_navigationBar.setRightMenu(widgetButton);
    }

    private void gotoShare() {
        showShareButton();
    }

    @Override
    protected void doLogicFunc() {

    }

    @Override
    protected void setNavigation() {
        setNavigationBack("新款到店");
    }
}
